i have improved the answer