made step prompt a generic function