commit with model