fixed code error handling need to be done