print key and value