updated renderer to allow undef attribute values