removed double check of POST and f.close line not needed.