deleted the commented code in searchcontroller