added fold feature