resetting P to zero but also during projection