In this paper, an improved metaheuristic algorithm based on Grey Wolf Optimizer algorithm is proposed for solve optimization problems. In the proposed algorithm, the weakest of wolves would be excluded from the population and included with other wolves from the initial population. The choice of placed wolves would be random or fitness basis. In this algorithm, the spatial fitness of the particles is studied in each iteration, and in the case of improving the fitness basis, the wolves are moving toward the target. Otherwise, they remain in the last fit state. This algorithm is designed to improve the search performance against various issues, increase convergence speed, and avoid local optimal. Simulation has been done in Matlab software and it has been implemented with 23 different optimization mathematical functions. By examining the results and comparing the results of the results obtained from the new algorithm, Grey wolf optimizer algorithm, and several other algorithms, we conclude that by adjusting the parameters, the performed improvements have a significant effect on the performance of the algorithm on different functions.