removed extra "def" from actions.py