adjusted algorithms