updated to three dimensional array