fix passing arguments to functions and constructors.