implement ReturnCode