fixing redundancy pointed out by @dcadams