HALPED clean up