added algo