small code smell removed