refactor licence