question logic