replace bytes::length() by length()