double array implemented, but not working yet