removed phantom "isbytes" variable