add license and conver dup to a func