modified sdf for variable number of tag