bugfix for switched n < m which made for loop to dead code leaving interface methods unlinked