compasses can operate by magnetism