scaling bugfix & support for different matrix sizes