use bytes api to remove warnings