correcting line 7&8&9