insert and select finished