removed unnecessary libraries, cleaned code