organized bulks of code inside draw method