define the transition function for the theta params