enough space?

Binary sketch size: 22274 bytes (of a 32256 byte maximum)

my program seems to not run with this memory used in sketch.

would this be the problem?

I can run other sketches on the same arduino with less mem used

The message reports the program size (which is clearly within limits). Program is stored in FLASH

Besides that your program uses RAM during runtime (max 2K UNO). We cannot see if you are out of RAM unless you post your code.

There are some function posted onthe forum / playground to determine your RAM usage (search for freeram() or so).