added hpsMorph_function.py