removing extra calls to uint8