clear function added to main.py