use director resize instead of recreation;