updated code t