inal attemt at removing pesky runtime error