refactors parse methods to work on object and not on string