Changed updated code