function updates, document updates