replaced private by api