updates to makeP* and also filtration script added