Rewrite following Dim advices