fixed prof's errors