extracting a couple of conditionals