updated to use parse method properly