commit with select