fixed up performance issues on mobile.