updated nick retrieval function