A fixed point theorem by altering distance technique in complete metric spaces