which part of the cell allows or prevents subtances to go into and out of this cell