add error if array of voids is declared