correct SN assignment and add correction option (-g)