added C-like formatting for D