remove extra type, move reference out of steps