removed typeStack()