made flow diagram for client