more idiomatic syntax