script for function with params