pin function and comment insert finish