added multi valued format logic