Port tetris, the four part cure