duel assignment

added array in place of variables…it works but hopefully I m not
missing anything