recover some codes