fix colon and get rid of 2D array