working with add client function