added exceptiion to vendoe