debug the key placement