fixed submissions chart. refactoring