add check for rc code