- erase and clear methods added