get custom attribute when value missing