removed unwanted var and added license