added base for implementing search