added condition for bytes to expand_units()