start recasting to make matrices