homework for web assignment, prevent myself from self-overwriting