what is the sence of publshing this function?
maybe mark this is deprecated?