add rest of Lambda code