update audit logic