updated makefile + removed atomic block