returned to old algo