add Haar transform for reference