newer version of the code