commented out origin determineDx function. used sizeSwitcher function and switched the units to percentage