corrected integer error