refactoring read, fix 64 before testing