modified a small error but the output is stil the same