add length methods to datavalues