more advanced for cycle drawing added