modify structure of library