renamed the algorithms