fix syntax on post method