don't print spaces we dont care
consolidate defs
handle window resize