removing nested lists