fixing hex in funtion call