adding method for getting names