resolve runtime error