resize before knit