search has bug needs to be fixed