added license
code polish