compacted interpolation code a bit, more strictly following EAFP style