code updated for rust .10