changed the code according to the given binaries