updates example read/write declaration