deprecate insertion logic. needs work.