use idiomatic seq instead of when not