corr ret multiple func with conds