parse method.