changed return of methods to include error messages