fixed redundant assignment