error with defintitions