canvas working, error is an integer