can pass variables to autofit, still bugy