quick method to overwrite last byte