subsribe to clients function