add key compression