removed duplicate parameter on castVote method