removed unused import
implemented modify regs and args