tidied up RenderPart using for comprehensions