abstracted parse method in new file