fix inst switching 2 by 2, add custom PRINT function