making the code more idiomatic