updated guide for new function