trying to fix the coordinates for 20 layers