Add  atomic add and sub
Fixed define head