new code with ok chat