added erase and create