handle empty attributes