now removes and adds from files