added default val; added 'type' tag