added the ability to pass parameters into then