passing ctx to draw funcs