fixed bug in pfield inlets
cleanup