changes in search way script