use logicals instead of 1 and 0
data formatting and isExp in logs