new implemention of bytes utility