flattening the wrong thing