updated election module