added Attribute and localLoop method