new algorithm comes with check 4