add function for refresh library