modify for stocklog changed