added docs for get_preview