implemented PMX, edited comments