altered structure for chat