redesign centerLine, fixes #240