fixing default algorithm