refactoring splash