newest code attempting to fix messages not displaying correct information