fixed a code smell