formatting and logging changed