fixed unix code