fixed and renamed function to cut dissents