fixing old homeworks