preparations for antialiasing mode
added Pythagoras mode