made r5 have static variables