adding parse method