added function inputs in their declarations