replace byte with int in fill method