fixing plus one logic