modigifation in the attributes loop