added parse method