Coating preparation and surface treatment