added get_username function