sdf3 modular definition using templates