fix to not do division and multiplication right after for HP-UX