testing revealed a runtime error, fuxed cause