new function to obtain nickname