modified formsele.py