parse method used