better way of getting names