fixed custom_insert