if memory is full, program is now written to the disk