fixed bug, now repaints okey
added botch threshold
added comments