changed finals code to use post instead of get