added arrays to store data