added savearray(), work in progress