updated to use loom