fixed logical error;