allow the list of units to be of type 'long' as well