starting with empty array in log file works now