adding feature: auto insert