need just to change the value of vote depending on type, buggy
littles fix