added some code to search vc