Gamma rays are like x-rays . In the past , the distinction between X-rays and gamma rays was based on energy ( or equivalently frequency or wavelength ) , with gamma rays being considered a higher-energy version of X-rays .