changes according last lecture