added ref code translation