implemented my-interpose function