remove nested attributes