updated datatype for messages and users