remove unnecessary libraries