better naming convention. using parseInt rather than ~~ for clarity