moved array statement to body