improved reading the code