insertion logic rework