added treat code to updates