parse method