was giving error when more arguments are passed !
now its working fine