not working function removed from quit menu