make simple and ref attribute declarations optional