make sure customTheta can be called