remove unused error message and comments