parseApply function
parsing works