figuring out how when is supposed to work