nested statement compress