update bytes to HR func