fixed score added legal functions constant