reading in keys from dictionary