update current state of library