added header, moved function bracket to newline