Updating code snipped