modified the basic assignments and made the intermediate assignment