refactoring reshape(..., how:String)