rework variables, add byte comparison for equality