renamed defineempty to defineatom in order to match the whereatom statement