submit manager code