fix for prepend code