working versions of both SVMs