refracting codes