trimmed unnecessary pblock entries
Added a check on the min() call from picksun