detect hammer first