fix #8

- look back instead of ahead