removed bytelength for now and made tests pass