added delete_useless_nonterminalsxY
big fix