fixed compilation errors
fixed indentation problems