added method to make tests pass
removed debug code