search by parameter not working fine