added arrays and removed method body visit