fixed sncode