taking in account base width and base height in all situations