detect optimization; boosted line count to 20