adds paramter to function state function calls