before implementing search