bit more idiomatic