solved pe 32, very ugly, very slow