few simplification + add log dom size