simplify nested definition