started to use lifetime specifiers

working on chatroom