subst aciton w/ globals
initialize ts also