rather have this pulled out to a helper. Too ugly inline