add requires attribute in doc