//errors with "borrow of moved value":