could be extracted to `let`