trying to fix search class