refactor 'new Array' to '[]', update apollonius error handing