fix tas and ttas
add atomic abstraction