change assoctype with assoc hash