add draw coordinate function