removed extra array in last problem