why does my 98 honda accord ex 4cyl not shift rite all the time? on 1998 Honda Accord

Asked by for the 1998 Honda Accord
Original trans? Correct factory ATF? Has the level been checked -(warmed up , on LEVEL ground , with engine OFF for 1 minute) Does the 'D' light ever flash repeatedly while driving? ANY reply may be helpful.
sometimes i can only get like 2nd gear. other times its ok?
And the other questions I asked?.......