adding 2D support, or rather a small helper method to make 2D easier.