creating error message litte bug fixed