rename status to code