this might be better expressed as a ternary operation.