adding validations and making changes to parse file