filtering apply in doc ouputs for constants