refactored sigma directive