inserting implicit parameters into function calls