functios for the little shell