make nested def possible