update library structure