fold right and fold left added