working magic bits