corrected integer problem