added multifield functionality