code refractered