made some changes to adding.py