example for use canvas