fix scope of pp