thanks @markolson for suggesting how I could kill 17 lines