modify to peek ahead X instead