FYI, you could have used one map call instead of two.