added draw functionality