use array for cut point stack