finishing the creating private methods