fix licence and define