code snippet for new API