move longhair functions to erasure pacakge