solve problem I