working with non-square cell sizes