added several arguments and functions