added body to the two functions