added trans mode func frontend