replaced with methods by thenDo