changed array declaration because readarray is not universal