new graphic, algorithm fix