oops wrong way of parsing int