fixing username function call