modified the intermediate assignment a bit