took me a while to parse that one, not sure if a method elsewhere would be cleaner