changed size/1 to byte_size/1
the rest of the requested changes