fixed algorithm1