port unit factor to implementation file