corrected byte to int