refactoring bet form