changed activation code generation to proper format