some sanvas stuff
share functionality