added apifunctions