fixed formatting and compile problems