sum og squared error is now vector friendly