The invention provides compositions and methods for planarizing or polishing a substrate. Said device comprising a multi-mode interference waveguide having at a first side a number, N, of accesses for connection of access waveguides. Components which do not generate excessive heat are located on the upper side of the circuit board.