it is mainly old buildings that are problem of course not blocks flats
It is mainly old buildings that are a problem, of course, and not just blocks of flats.
It is mainly old buildings that are problem, of course, not blocks flats.