solving ABS problems