thanks to hamburg for the idea