almost working version; still have scale issues