refinded code