implemented first version of right attribute error messages