second attempt for chatroom