add conditional template