avoid repetition of POST