updated code usage example