trying to fix recursive auto width and height