remove unnecessary dependencies and code