removed unused variables, arguments and libraries