Convert map block to proc call to shorten and clarify what this line is doing