code version 6 to 7