add fold method to resemble inject