fixed inheritance wiith canvas boilerplate