improve edit sys score function