making search actually work