binary read method added