replacing draw method