Preparation of the coating