made 2 chats, compiles, has seg fault