implementing search function...