added array passing as func args