fixed logic error with processData() gate