writes pm