fixed the scaling functions, but approximation results do not work