refactoring addroundkey logic to debug