used Array.clear because it exists