rewrote pmm, but not working...