slight edits to API