refined coding