fixed the parseInt calls