with errors, but fix integer division