added arguements to postvote()