added functionality to the two func for PA2