improve efficiency on assignment submission
a failed trial on spatial optimization