skeleton for insert and find