added some utility methods