i used 40 and 60 grit, i used a detail sander and a rectangular sander
Yikes! Talk about the wrong way to do things... You need to sand more. A
lot more, preferably with a random-orbit sander. Use 80, 120, 150, 180, 240, and 320. If you're going to use gloss or semi-gloss paint, add 400 and 600 grit, too.
After that, you'll need to spray or roll on some primer. Then sand, preferably by hand, with 400 or 600 grit paper. If you're done a really sloppy job with the primer, you may have to start with 320 grit. If you sand through the primer, you'll have to put on another coat so be careful.
Once that's done, then you can apply some paint!