complete the Insert method