each function updates