some utility operations for values