renamed function to match API docs