fix parse method