A NEW APPROACH IN MODELING THE RESPONSE OF RPC DETECTORS