read and code