converted to space-indentation
added test, fix, to ensure `options` is an optional parameter