while loop
black magic for the pixels