added guard file and title method