If your attorney failed to tell you about a potential plea agreement, you should file a motion based on the ineffectiveness of counsel. You must show that you would have accepted the plea and received a reduced sentence.