fixed resistanceRate initialization error, removed print statements