updating to new code