added 2 small helper methods