changed the type of ts