Fixed format of output

output is formatted as key "space" dict