hopefully fixed problems caused by array initialization