a way to write conditions