code improvement, detects late amplifications better now