simulating autofit for now