Changed 25 to r variable