moved and renamed function to check tsl data