added @keflavich's indentation suggestions