corrected the approach