solved the integer problem