removed local reference to api