changing the add 4 bytes function