I make some useful methods to solve different problems