logic to methods
Move testing logic