assign variables to reach attributes