checking the api functions