refactor the insert care