validate context and theta