attempted fix of runtime error