fixed null pointer error in instance contructor, changed predicition matrix, but still wrong