accessing modles attribute