add method to draw with double