bugfix to account for PREVIOUS_USED when searching