add function to context2D