modifying weno implementation