working on a post function in main.py