Finally got inserting right