working version of everything.