i tried david's solution.And it works thanks a lot.