added static canvas logic