change ~~ to parseInt + rename typo in filename