optimize specs