refactored code and have wavelets on all 3 axis