created service for chat