fix type as byte, not int