changing algorithm heading