Guideline for rehabilitation of vernacular architecture