making methods for pretty printing intervals