added chat operation but it needs to be modified..