debugging 2d