check on algo
fixed