only print non-None keys