begin realize code Fano func