create method search by name