Deleting and adding to basecode