speed improvement for next and prev