added searchfunction