added username function