thanks to @baggot for the idea