debug
theta dim p -> p-2