Assigns PENDING state to newly allocated flows
fixes code style