refactoring front balls