code replaning