added name functionality