corrected the uncessful errors