put votes handling in another file