add license and small change