hidden fifths implementation