fix off by one thing