-- changed position of ns_log using payment_id