allocation of profits and losses