refactored a leetal beet