To save my algorithm