added folio logic