flattens out