cleaned solution from R# code inspection errors and warnings