add draw basic function