fixing formating issues
fix some issues with patch and code formating