adding in deletion of yMatrix