residence can insert by code