improperly nested code