rules of the flow diagram