tricky, but effective