add logger about resizing and calculating