use array instead of variables.