changed API names to constants