better implementation of my-interpose