fixing lookat martix calculation