code formatting enhanced