refactor parseInt