persist submissions, refactor variable naming for consistency