removal of libraries and unnecessary functions