* added allin fold logic