removed bug resulting from switched lines