changed to byte operations