isempty and adding elements