pulled the markevery logic out of the main draw function.