all code is formatted to be more C-style