methods and tests