make sure to print right edge pixels
add some comments