this is quite readable, but you could also use `when xxx then xxx` to make a oneliner