change get next to check previous value