cleans up messages in the code