updating number of lib