create rep code