added necessary lines