change made in case the list of students is empty