fix indentation and arrays