fixed humanize function