remove redundant `on the nms` line and general formatting improvements