refactoring draw parameters