added some utility methods to units