algorithm model hand checked but could not check using test db due to stupid drupal