Search histries to backward and forward