changed search stuff a little