magnets
refactor