several updates to the code