added proc for optimization of pbp edit...