made a new function for writing the message for the floor