replace with compiled code