fixed some input issues,
but now there's a fail at reading number,
going to fix this