You speak with your lawyer about speaking with the prosecutor's office or making a motion to amend the charge.  A Class X felony is, as is my understanding, the most serious felony offense on the books in Illinois.  SO act quickly.  Good luck.