draw small refactoring