adding some error messages