added license and modified rotate instruction