ini arrays outdie of functions called repeatadly