done function to post method(require online environment)