1. errorDetectore fuction added (except scatter graph)