thread safety; const indentation