clean up and dim.y dim.x vars swapped for 150