change datatype of referer of votes flags