errors removed except for illegal zero sized array