really unnecessary to do the undefined check here, we can assume that people know how to use the api