removed unnecessary 'result' key; formatting tweaks