added license and changed variable name