cross-posted from: https://lemm.ee/post/34792342