common utility methods