add functions to clear an array.