rename init to submit. And set return value of submit