fixes attr and updates example