cleanArray usage