something weird with integers, solved!