implemented histories search