added draw to main