added voting and passing of votes