moved caption rules to theme