added docstring, methods order