made search function again