added magic hammer logic