refactoring fluent wait