updated with parseInt