function receives byte now