resize issue corrected - ok calculation