fix where the username param is passed from func to func