addTaile method added