fixed error message, still problems with removing msg