const modifier doesn't work for int
fix xh_key