added new arrays.
unused code has been removed